package com.heima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.pojo.User;
import com.heima.pojo.domain.PageQuery;
import com.heima.pojo.domain.PageResult;
import com.heima.pojo.dto.LoginDto;
import com.heima.pojo.dto.UserDto;
import com.heima.pojo.vo.LoginUserVo;

public interface UserService extends IService<User> {
    LoginUserVo login(LoginDto dto);

    PageResult search(PageQuery pageQuery, String userName);

    Boolean insert(UserDto userDto);

    Boolean updateUser(UserDto userDto, Integer userId);
}
